package com.scg33;

import org.zkoss.zk.ui.Executions;

public class Config {
	
	static private String DIRECTORIO_BASE_WEB = "";
	static private String DIRECTORIO_BASE_REAL = "";

	static{
		try {
			DIRECTORIO_BASE_WEB = Executions.getCurrent().getDesktop()
					.getCurrentDirectory();
			DIRECTORIO_BASE_REAL = Executions.getCurrent().getDesktop()
					.getWebApp().getRealPath("/");
		} catch (Exception e) {
			System.err.println("");
			DIRECTORIO_BASE_WEB = "./";
			DIRECTORIO_BASE_REAL = "./";
		}
	}
	
	public static String getDireReal(){
		return DIRECTORIO_BASE_REAL;
	}
	
	public static String getDireWeb(){
		return DIRECTORIO_BASE_WEB;
	}
	
}
